#include <iostream>
#include <vector>
#include <string>

using namespace std;

int main()
{
    string s;
    getline(cin,s);
    s+=' ';
    vector<string> v;
    string s1="";
    int ans4=0, ans5=0;
    string ans60;
    int ans61=0;
    for (auto i=0;i<s.size();i++)
    {
        if (s[i]!=' ')
            s1+=s[i];
        else if (s1!="")
        {
            v.push_back(s1);
            if (s1.size()<=3)
                ans4+=1;
            //jebibvbbvfb
            for (auto j=0;j<s1.size();j++)
            {
                if (s1[j]=='-')
                {
                    ans5+=1;
                    break;
                }
            }
            //cjrenviebfvb
            if (i==0)
            {
                ans60=s1;
                ans61=s1.size();
            }
            else if (s1.size()>ans61)
            {
                ans60=s1;
                ans61=s1.size();
            }
            //hefhvkbvkeb
            s1="";
        }
    }
    int ans1=v.size(), ans2=0;
    for (auto i=0;i<v.size();i++)
    {
        if ('A'<=v[i][0] && v[i][0]<='Z')
            ans2+=1;
    }
    int ans3=0;
    for (auto i=0;i<v.size();i++)
    {
        bool p=false;
        for (auto j=0;j<v[i].size();j++)
        {
            if ('A'<=v[i][0] && v[i][0]<='Z' || 'a'<=v[i][0] && v[i][0]<='z')
                    p=true;
        }
        if (p)
            ans3+=1;
    }
    if (ans1==0 || ans1==1)
        cout<<"Мало данных для анализа"<<endl;
    else
        cout<<ans1<<endl<<ans2<<endl<<ans3<<endl<<ans4<<endl<<ans5<<endl<<endl<<ans60<<endl<<ans61<<endl;
}